$(document).ready(function(){		
	$("#signupForm").validator().submit(function f(event){
		 if (!event.isDefaultPrevented()) {
			 $.ajax({ 
				 type: 'POST', 
				 url: "../open/createUser.json", 
				 data: $("#signupForm").serialize(), 
				 datatype: "json", 
				 success: function (response) {
					 alert(response.message);
				 }, 
				 error:	 function(response, ajaxOptions, thrownError) {
					 alert("Some problem in saving the record : " + response.message);
				 }
			});
			 event.preventDefault();
		 }
		 else {
			 event.preventDefault();
			 //alert("Please correct the below form errors");
		 }
	});
});
